<!DOCTYPE html>
<html class="" lang="zh-CN">

<head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>全局唯一性内容管理系统</title>
  <meta charset="utf-8">
  <meta content="always" name="referrer">
  <meta content="Chrome=1,IE=edge" http-equiv="X-UA-Compatible">
  <!--  <link href="css/base.css" media="screen" rel="stylesheet" type="text/css">-->
  <link rel="stylesheet" href="css/paging.css">
</head>

<body>
<header>
  <div id='kkpager'></div>
<script src="js/jquery.min.js" charset="utf-8"></script>
<script src="js/paging.js"></script>
<script>
/*翻页*/
var pageNo = 0;//分页，默认第几页
var totalPages = 10; //总页数
var totalElements = 0; //总条数
var ajaxPage = 0; //数据请求，第几页
var isNewPages = true;
var pageSize = 10;//获取几条数据
paging(pageNo, totalPages, 1000)
//分页跳转
function paging(pageNo, total, totalRecords) {
  kkpager.generPageHtml({
    pno: pageNo,
    //总页码
    total: total,
    //总数据条数
    totalRecords: totalRecords,
    mode: 'click',//默认值是link，可选link或者click
    click: function (n) {
      //手动选中按钮
      isNewPages = false;
      // this.selectPage(n);
      this.selectPage(n, total, totalRecords);//pagingmore
      pageNo = n;
      ajaxPage = pageNo - 1;
      // $('#search-list').empty();
      // 内容自适应，设置ajax请求个数
      // var contHeight = $(".serch-list-box").height() - 18 - 71 - 20;
      // pageSize = Math.floor(contHeight / 34);
      //categoryHtml();//获取数据类别列表分页
      return false;
    }
  }, isNewPages);
};
</script>
</body>

</html>